message

open fun message(): String

Returns a string that represents the text of the console message.

When logging the JavaScript error that was caused by calling the Java method that was injected using the InjectJsCallback, then the message will contain the java exception type and the first line of the stack trace that contains information about the package, class, method and the line of code where the exception was thrown.